package Lecture6;

import java.util.Scanner;

public class ClassTask2 {

	public static void main(String[] args) {

		Scanner sc = new Scanner (System.in);
		
		System.out.println("Please enter your name!");
		String name = sc.nextLine();
		
		String initials = " ";
		for (int i = 0; i < name.length(); i++)
		{
			
			if(Character.isUpperCase(name.charAt(i))){
					initials += (name.charAt(i));
			}
			
		}
		System.out.println(initials);
		
		
	}

}
